package base;

import java.util.Vector;

import application.BulletinForManagerController;
import db.DB_tools;
import javafx.collections.ObservableList;

public class Manager extends Person{
	public Manager(String name, String password, String level,int id)
	{
		super(name, password, level, id);
	}
	
	public Manager(){}
	/*
	public String[][] getAttendance()
	{
		
	}
	*/
	/*
	public int checkAttendance()
	{
		
	}
	*/
	
	public void setBulletin(String content, String name)
	{
		BulletinForManagerController bc = new BulletinForManagerController();
		db.DB_tools.addBulletin(content, name);
		
	}
	
	public void setAssignment(String content, String sname, String mname, String id)
	{ 
		int ID=Integer.parseInt(id);
		if(DB_tools.checkExist(ID,sname)){
			DB_tools.addAssignment(content,sname,mname,id);
		}
	}
	
	public ObservableList<Assignment> getAssignment(String name)
	{
		return DB_tools.getAssignment(name);
	}
	/*
	public String[][] nameList()
	{
		
	}
	*/
}
